<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
      <script language="javascript">
      <logic:equal value="save" name="location_form" property="action" >
          <bean:define id="location_form" type="ro.gateway.aida.locations.LocationForm" name="location_form" />
            if (opener) {
                  opener.add_location(
                  '<bean:write name="location_form" property="cregion_id" />',
                  '<bean:write name="location_form" property="country_iso3" />',
                  '<bean:write name="location_form" property="region_id" />',
                  '<bean:write name="location_form" property="county_id" />',
                  '<bean:write name="location_form" property="town_id" />',
                  '<bean:write name="location_form" property="village_id" />'
                  );
                  window.close();
            }
      </logic:equal>
      <logic:equal value="cancel" name="location_form" property="action" >
            window.close();
      </logic:equal>
      </script>
</head>

<body>
Loading...<br>
Please wait
</body>
</html:html>